package com.itheima.tliassystem.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component
//@Aspect
public class Aspec3 {
    //切入点表达式
//    @Before("execution(void  com.itheima.tliassystem.service.DepService)")
// public void before(){
//        System.out.println("切入点表达式");
// }
 @Before("execution(void com.itheima.tliassystem.service.impl.DepServiceImpl.addDept(com.itheima.tliassystem.entity.Dept))"+
  "|| execution(com.itheima.tliassystem.entity.Emp  com.itheima.tliassystem.service.impl.EmpServiceImpl.selectById(java.lang.Integer))" )
    public void before1(){
        System.out.println("切入点表达式e");
    }
}
